class CreateFamilies < ActiveRecord::Migration
  def change
    create_table :families do |t|
      t.text :description    #特别说明
      t.string :name, null: false     #分类名
      t.index  :name
      t.integer :rank, null: false  #级别
      t.timestamps

    end

  end

end
